/*=============================================================================
# FileName    :	axi_stream_bfm.svh
# Author      :	author
# Email       :	email@email.com
# Description :	data端口使用32位，如果实际没有用到，例化的时候去掉
# Version     :	1.0
# LastChange  :	2018-09-17 16:57:04
# ChangeLog   :	
=============================================================================*/

interface axi_stream_bfm;
    logic                               s_aclk;
    logic                               s_aresetn;

    logic                               m_axis_tvalid;
    logic                               m_axis_tlast;
    logic                               m_axis_tready;
    logic [31:00]                       m_axis_tdata;

    logic                               s_axis_tvalid;
    logic                               s_axis_tlast;
    logic                               s_axis_tready;
    logic [31:00]                       s_axis_tdata;

    initial
    begin
        s_aresetn = 1; #100ns;
        s_aresetn = 0; # 1us;
        s_aresetn = 1;
    end

    initial
    begin
        m_axis_tvalid = 0;
        m_axis_tlast = 0;
        m_axis_tdata = 0;

        s_axis_tready = 0;

        s_aclk = 0;
        forever
        begin
            #(1s/100_000_000/2) s_aclk = ~s_aclk;
        end
    end

endinterface
